package com.neusoft.aclome.cmp.cloud.server.jcce.feign;

import com.alibaba.fastjson.JSONObject;
import com.neusoft.aclome.cmp.common.model.vo.HttpResponse;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

/**
 * describe :
 *
 * @author zfl
 * @date 2024/2/5
 */
@FeignClient(name = "external-api", url = "http://127.0.0.1:8081")
@Component
public interface Kt2ReportProcessService {

    @ApiOperation(value = "上传流程信息")
    @PostMapping("/reportingProcess")
    HttpResponse<JSONObject> reportingProcess(@RequestBody JSONObject jsonObject);

    @ApiOperation(value = "获取流程配置信息")
    @GetMapping("/getConfiguration")
    JSONObject getConfiguration(@RequestParam String returnId);


}
